import request from '@/utils/request'

export function getProductData(product_id, product_group_id, activity_id) {
  return request({
    url: `/product/${product_id}?product_group_id=${product_group_id || ''}&activity_id=${activity_id || ''}`,
    method: 'get'
  })
}

export function getProductRecommData(product_id, per_page) {
  return request({
    url: `/product/recomm?product_id=${product_id}&per_page=${per_page}`,
    method: 'get'
  })
}

export function getHospitalData(hospital_id) {
  return request({
    url: `/hospital/info?user_id=${hospital_id}`,
    method: 'get'
  })
}

export function getDoctorData(user_id) {
  return request({
    url: `/doctor/info?user_id=${user_id}`,
    method: 'get'
  })
}
export function getdiaryData(product_id, per_page) {
  return request({
    url: `/diary-group?product_id=${product_id}&per_page=${per_page}`,
    method: 'get'
  })
}
